﻿@model GKS.TBMS.Portal.Models.UserRoleTeam

@{
    ViewBag.Title = "Edit";
}

<h2>Edit</h2>

@using (Html.BeginForm())
{
    @Html.AntiForgeryToken()
    
    <div class="form-horizontal">
        <h4>UserRoleTeam</h4>
        <hr />
        @Html.ValidationSummary(true)
        @Html.HiddenFor(model => model.UserId)

        <div class="form-group">
            @Html.LabelFor(model => model.FirstName, new { @class = "control-label col-md-2" })
            <div class="col-md-10">
                @Html.EditorFor(model => model.FirstName)
                @Html.ValidationMessageFor(model => model.FirstName)
            </div>
        </div>

        <div class="form-group">
            @Html.LabelFor(model => model.MiddleName, new { @class = "control-label col-md-2" })
            <div class="col-md-10">
                @Html.EditorFor(model => model.MiddleName)
                @Html.ValidationMessageFor(model => model.MiddleName)
            </div>
        </div>

        @Html.HiddenFor(model => model.LastName)

        @Html.HiddenFor(model => model.Username)

        @Html.HiddenFor(model => model.RoleId)

        @Html.HiddenFor(model => model.RoleName)

        <div class="form-group">
            @Html.LabelFor(model => model.RoleDescription, new { @class = "control-label col-md-2" })
            <div class="col-md-10">
                @Html.EditorFor(model => model.RoleDescription)
                @Html.ValidationMessageFor(model => model.RoleDescription)
            </div>
        </div>

        @Html.HiddenFor(model => model.TeamId)

        @Html.HiddenFor(model => model.TeamName)

        <div class="form-group">
            @Html.LabelFor(model => model.TeamDescription, new { @class = "control-label col-md-2" })
            <div class="col-md-10">
                @Html.EditorFor(model => model.TeamDescription)
                @Html.ValidationMessageFor(model => model.TeamDescription)
            </div>
        </div>

        <div class="form-group">
            <div class="col-md-offset-2 col-md-10">
                <input type="submit" value="Save" class="btn btn-default" />
            </div>
        </div>
    </div>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>
